<%@ page import="com.car.service.CarpoolService" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: 韩壮
  Date: 2021/6/1
  Time: 17:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>拼车关注页面</title>
    <link type="text/css" href="<%= request.getContextPath()%>/css/follow.css" rel="stylesheet">
</head>
<body>
<table border="2" class="follow">
    <th>备注</th>
    <th>司机</th>
    <th>车型</th>
</table>
    <% CarpoolService carpoolService = new CarpoolService();
    List<Map<String, Object>> caruser = carpoolService.getfollow();
    for (int i = 0; i < caruser.size(); i++){
        %>
    <td><%=caruser.get(i).get("usertype")%></td>
    <td><%=caruser.get(i).get("motor_type")%></td>
     <%
     }
     %>

body

html
